package com.h2.gwt.util.appstorage;

import java.util.Set;

public interface IParameterNameStrategy {

   /**
    * Given the name and all parameter names return the matching
    * parameter name if any or return the given <code>name</code> if no
    * match is found.
    * 
    * @param name The name of the request parameter
    * @param available The available parameter names to look through for
    *        a match
    * @param nullOnMismatch TODO
    * @return The matching parameter name for the given
    *         <code>name<code> if found or simply return
    *         the <code>name</code> if no match is found.
    */
   public String findMatch(String name, Set<String> available,
         boolean nullOnMismatch);
}
